package servlet;

public class Gare {
	private int number;
	private String name;
	private double lat;
	private double lng;
	
	public Gare(int code, String name, double x, double y){
		this.number=code;
		this.name=name.split("-")[1];
		this.lat=x;
		this.lng=y;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}

	public String toString(){
    	return name+ ": ("+lat+" ; "+lng+")";
    }
	
}
